  @font-face {
      font-family: 'FangZhengLantingHei';
      src: url('../element/fonts/方正汉真广标简体.ttf') format('truetype');
  }

  @font-face {
      font-family: 'DingTalk JinBuTi';
      src: url('../element/fonts/DingTalk\ JinBuTi.ttf') format('truetype');
  }

  body {
      font-family: Arial, sans-serif;
      background-color: rgb(248, 242, 238);
      margin: 0;
      padding: 0;
  }


  #menuBar {
      display: flex;
      justify-content: flex-end;
      background-color: rgb(238, 223, 209);

      border-bottom: 1px solid #ccc;
  }

  .menu-item {

      cursor: pointer;
      padding: 2px 18px;
      border: 1px solid #ccc;
      background-color: inherit;
      transition: background-color 0.3s ease;
      font-family: 'DingTalk JinBuTi', sans-serif;
  }

  .menu-item:hover {
      background-color: rgba(255, 255, 255, 0.8);
  }

  .header-container {
      position: relative;
      top: 20px;
  }

  .header {
      background-color: rgb(209, 219, 172);
      text-align: center;
      padding: 25px;
      border-radius: 18px;
      font-family: 'DingTalk JinBuTi', sans-serif;
      border: 1px solid #ccc;
  }

  .main-title {
      font-size: 34px;
      margin-bottom: 10px;
      font-weight: bold;
  }

  .sub-title {
      font-size: 32px;
      font-weight: bolder;
  }

  .carousel-container {
      margin: 40px auto;
      max-width: 800px;
      position: relative;
      padding: 0 20px;
  }

  .carousel {
      width: 100%;
      max-width: 800px;
      margin: 0 auto;
      overflow: hidden;
      border-radius: 18px;
  }

  .carousel img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: none;
      border-radius: 25px;
  }

  .carousel img.active {
      display: block;
  }

  .carousel-nav {
      display: flex;
      justify-content: center;
      margin-top: -32px;
  }

  .carousel-nav button {
      background-color: #ccc;
      border: none;
      border-radius: 50%;
      width: 10px;
      height: 10px;
      margin: 0 5px;
      cursor: pointer;
      transition: background-color 0.3s;
  }

  .carousel-nav button.active {
      background-color: rgb(51, 51, 51);
  }

  .carousel-controls {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 90%;
      display: flex;
      justify-content: space-between;
  }

  .carousel-controls button {
      background-color: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      cursor: pointer;
      transition: background-color 0.3s;
  }

  .carousel-controls button:hover {
      background-color: rgba(0, 0, 0, 0.8);
  }

  .text-module {
      text-align: center;
      margin: 20px auto;
      max-width: 800px;
      font-family: 'FangZhengLantingHei', sans-serif;
      font-size: 28px;
      color: #333;
      font-weight: bolder;
      margin-top: 50px;
  }

  .divider {
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 20px auto;
      max-width: 800px;
      position: relative;
      font-family: 'DingTalk JinBuTi', sans-serif;
      font-weight: bold;
      margin-top: 0px;
  }

  .divider::before,
  .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background-color: #ccc;
  }

  .divider-text {
      background-color: rgb(209, 219, 172);
      color: #000000;
      padding: 10px 20px;
      border-radius: 18px;
      font-weight: normal;
      position: static;

      font-family: 'DingTalk JinBuTi', sans-serif;
      font-size: 20px;
      border: 2px solid #ccc;

  }

  .candidates-container {
      /* display: grid; */
      grid-template-columns: repeat(2, 1fr);
      gap: 0px;
      /* 列之间的间距 */
      grid-auto-rows: minmax(100px, auto);
      /* 设置行的高度 */
  }

  .candidate {
      background-color: rgb(228, 239, 172);
      border-radius: 45px;
      padding: 0px;
      text-align: center;
      font-family: 'DingTalk JinBuTi', sans-serif;
      font-weight: normal;
      margin-top: 100px;
      margin-left: 25px;
      width: 158px;
      border: 1px solid #ccc;
      height: 170px;
      /* position: relative; */
      /* 添加这行 */
      float: left;
  }

  .candidate-img {
      width: 111px;
      height: 111px;
      border-radius: 50%;
      margin-top: -38px;
      border: 1px solid #ccc;

  }

  .candidate-name {
      font-size: 16px;
      margin-top: 14px;
      color: #000000;
      font-weight: normal;
      margin-left: 78px;
      font-family: 'DingTalk JinBuTi', sans-serif;
  }

  .candidate-department {
      font-size: 16px;
      color: #000000;
      font-weight: normal;
      margin-left: -63px;
      margin-top: -25px;
      font-family: 'DingTalk JinBuTi', sans-serif;
  }

  /* 模态框样式 */
  .modal {
      display: none;
      /* 默认隐藏 */
      position: fixed;
      z-index: 1;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0, 0, 0, 0.4);
  }

  .modal-content {
      background-color: rgb(228, 239, 172);
      margin: 15% auto;
      padding: 20px;
      border: 1px solid #888;
      width: 80px;
      height: 80px;
      max-width: 300px;
      position: relative;
      /* 添加这一行 */
  }

  .close {
      color: #aaa;
      float: none;
      /* 移除这一行 */
      font-size: 28px;
      font-weight: bold;
      position: absolute;
      /* 添加这一行 */
      top: 10px;
      /* 添加这一行 */
      right: 10px;
      /* 添加这一行 */
  }

  .close:hover,
  .close:focus {
      color: black;
      text-decoration: none;
      cursor: pointer;
  }

  .candidate-headline {
      font-size: 16px;
      color: #000000;
      font-family: 'DingTalk JinBuTi', sans-serif;
      margin-top: -220px;
  }

  .vote-button {
      background-color: rgb(240, 244, 226);
      color: rgb(0, 0, 0);
      font-family: 'DingTalk JinBuTi', sans-serif;
      font-size: 16px;
      font-weight: normal;
      border: none;
      padding: 6px 10px;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 8px;
      border: 1px solid #ccc;
  }

  #scoreForm {

      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: rgb(228, 239, 190);
      border-radius: 56px;
      width: 356px;
      height: 213px;
      padding: 30px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
      text-align: center;
      font-family: 'DingTalk JinBuTi', sans-serif;
      z-index: 1001;
      filter: none;
  }

  .score-control-button {
      width: 24px;
      height: 24px;
      fill: #000;
      /* 图标颜色 */
  }

  #scoreForm {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 20px;
      z-index: 1001;
  }

  #scoreForm h3 {
      margin-bottom: 20px;
      color: #333;
      font-family: 'DingTalk JinBuTi', sans-serif;
      margin-top: 1px;
      margin-bottom: 12px;
      font-size: 26px;
  }

  #scoreForm input[type="number"] {
      width: 80%;
      padding: 10px;
      margin: 10px 0;
      border: 1px solid #ccc;
      border-radius: 56px;
      text-align: center;
      font-size: 16px;
      outline: none;
      /* 移除默认聚焦样式 */
      transition: border-color 0.3s;
  }

  #scoreForm input[type="number"]:focus {
      border-color: #4CAF50;
      /* 聚焦时边框颜色变化 */
  }

  #scoreForm button {
      margin: 5px;
      padding: 6px 16px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
      transition: background-color 0.3s;
  }

  #scoreForm button:hover {
      background-color: #45a049;
  }

  #scoreForm button.cancel {
      background-color: #f44336;
  }

  #scoreForm button.cancel:hover {
      background-color: #d32f2f;
  }

  /* 增加按钮之间的间距 */
  #scoreForm div {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 15px;
  }

  #scoreForm div button {
      margin: 0 10px;
  }

  #scoreInput {
      position: relative;
      /* 或者 absolute, fixed 根据需要 */
      width: 400px;
      /* 修改宽度 */
      height: auto;
      /* 修改高度，可以根据内容自动调整 */
      font-family: 'DingTalk JinBuTi', sans-serif;
      /* 修改字体样式 */
      border-radius: 10px;
      /* 修改边框半径 */
      border: 1px solid #ccc;
      /* 可选：添加边框 */
      padding: 10px;
      /* 可选：添加内边距 */
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      /* 可选：添加阴影 */
  }

  .score-control-button {
      font-size: 24px;
      /* 调整为所需的字体大小 */
  }

  .decrease-score-div svg,
  .increase-score-div svg {
      transform: scale(1.2);
      /* 这里的1.2可以根据你想要的放大倍数调整，比如1.3、1.5等 */
      transform-origin: center;
      /* 以中心为缩放原点，确保均匀放大 */
      padding: 2px;
      width: 30px;
      height: 30px;
  }

  .decrease-score-div {
      height: 30px;
      width: 30px;
      background-color: white;
      margin: 1em;
  }

  .increase-score-div {
      height: 30px;
      width: 30px;
      background-color: white;
      margin: 1em;
  }

  /* ... 其他CSS样式 ... */